package com.woniuxy.product.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName adjust_salary
 */
@TableName(value ="adjust_salary")
@Data
public class AdjustSalary implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer adjustSalaryId;

    /**
     * 
     */
    private Integer empId;

    /**
     * 
     */
    private Date adjustDate;

    /**
     * 
     */
    private Integer beforeSalary;

    /**
     * 
     */
    private Integer afterSalary;

    /**
     * 
     */
    private String reason;

    /**
     * 
     */
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AdjustSalary other = (AdjustSalary) that;
        return (this.getAdjustSalaryId() == null ? other.getAdjustSalaryId() == null : this.getAdjustSalaryId().equals(other.getAdjustSalaryId()))
            && (this.getEmpId() == null ? other.getEmpId() == null : this.getEmpId().equals(other.getEmpId()))
            && (this.getAdjustDate() == null ? other.getAdjustDate() == null : this.getAdjustDate().equals(other.getAdjustDate()))
            && (this.getBeforeSalary() == null ? other.getBeforeSalary() == null : this.getBeforeSalary().equals(other.getBeforeSalary()))
            && (this.getAfterSalary() == null ? other.getAfterSalary() == null : this.getAfterSalary().equals(other.getAfterSalary()))
            && (this.getReason() == null ? other.getReason() == null : this.getReason().equals(other.getReason()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAdjustSalaryId() == null) ? 0 : getAdjustSalaryId().hashCode());
        result = prime * result + ((getEmpId() == null) ? 0 : getEmpId().hashCode());
        result = prime * result + ((getAdjustDate() == null) ? 0 : getAdjustDate().hashCode());
        result = prime * result + ((getBeforeSalary() == null) ? 0 : getBeforeSalary().hashCode());
        result = prime * result + ((getAfterSalary() == null) ? 0 : getAfterSalary().hashCode());
        result = prime * result + ((getReason() == null) ? 0 : getReason().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", adjustSalaryId=").append(adjustSalaryId);
        sb.append(", empId=").append(empId);
        sb.append(", adjustDate=").append(adjustDate);
        sb.append(", beforeSalary=").append(beforeSalary);
        sb.append(", afterSalary=").append(afterSalary);
        sb.append(", reason=").append(reason);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}